package com.qifan.alb2b.service;

import org.springframework.stereotype.Service;

import com.qifan.alb2b.dao.ExchangeInfoDao;
import com.qifan.alb2b.domain.ExchangeInfoDomain;
import com.qifan.alb2b.util.DataGridModel;
import com.qifan.alb2b.util.Page;

@Service
public class ExchangeInfoService {
	private ExchangeInfoDao exchangeInfoDao;

	public void setExchangeInfoDao(ExchangeInfoDao exchangeInfoDao) {
		this.exchangeInfoDao = exchangeInfoDao;
	}
	
	public Page query(DataGridModel dgm,ExchangeInfoDomain uqp){
		return exchangeInfoDao.query(dgm,uqp);
	}
	
	public void add(ExchangeInfoDomain exchangeInfoDomain){
		exchangeInfoDao.add(exchangeInfoDomain);
	}
	
	public void update(ExchangeInfoDomain exchangeInfoDomain){
		exchangeInfoDao.update(exchangeInfoDomain);
	}
	
	public void delete(String[] ids){
		exchangeInfoDao.delete(ids);
	}
	
	public ExchangeInfoDomain getAdminById(String id){
		return exchangeInfoDao.getExchangeById(id);
	}
	
}
